package com.rfid.util;

import com.rfid.db.bean.User;

import java.util.ArrayList;
import java.util.List;

public class UserManager {

    private static UserManager userManager;
    private User mUser;

    public static UserManager getInstance() {
        if(userManager == null) {
            userManager = new UserManager();
        }
        return userManager;
    }

    public List<User> getUsers() {
        return DBManager.queryUsers();
    }

    public void setLoginUser(User user) {
        mUser = user;
    }

    public User getLoginUser() {
        return mUser;
    }

}
